import request from '../utils/request.js'

// 获取首页商品
export function getIndexGoods() {
	return request('goods/select/index/1001');
}

// 根据商品号获取商品详细信息
export function getGoodsInfoById(id) {
	return request('goods/select/'+id)
}

export function getGoodsByType(type) {
	return request('/goods/select/type/'+type)
}
